package com.hlhj.funlike_business.presenter;

import android.content.Context;

import com.example.mymvp.mvp.BasePresenter;
import com.hlhj.funlike_business.bean.LoginBean;
import com.hlhj.funlike_business.moudle.LoginMoudle;
import com.hlhj.funlike_business.views.LoginView;

public class LoginPresenter extends BasePresenter<LoginMoudle,LoginView> implements LoginMoudle.getLoginResult {
    @Override
    public void createModule() {
        module=new LoginMoudle();
        module.setListener(this);
    }

    public void LoadLoginResult(Context context,String login,String password){
        module.LoginResult(context,login,password);
    }

    @Override
    public void showResult(LoginBean loginBean) {
        getView().showLoginResult(loginBean);
    }
}
